//
//  GTTopNavGroupView.h
//  GTSliderDemo
//
//  Created by yate1996 on 15/7/21.
//  Copyright (c) 2015年 yate1996. All rights reserved.
//

#import <UIKit/UIKit.h>

#define NOMALKEY   @"normalKey"
#define HEIGHTKEY  @"helightKey"
#define TITLEKEY   @"titleKey"
#define TITLEWIDTH @"titleWidth"
#define TOTALWIDTH @"totalWidth"



@protocol GTTopNavGroupViewDelegate <NSObject>
@optional
-(void)didMenuHrizontalClickedButtonAtIndex:(NSInteger)aIndex;
@end
@interface GTTopNavGroupView : UIView
{
    NSMutableArray        *ButtonArray;
    UIScrollView          *ScrollView;
    NSMutableArray        *ItemInfoArray;
    float                 TotalWidth;
}

@property (nonatomic,assign) id <GTTopNavGroupViewDelegate> delegate;

#pragma mark 初始化菜单
- (id)initWithFrame:(CGRect)frame ButtonItems:(NSArray *)aItemsArray;

#pragma mark 模拟选中第几个button
-(void)clickButtonAtIndex:(NSInteger)aIndex;

#pragma mark 改变第几个button为选中状态，不发送delegate
-(void)changeButtonStateAtIndex:(NSInteger)Index;

@end;
